package com.efast.dmom.mgmt.service.les.impl;

import java.util.List;

import com.efast.dmom.mgmt.dao.les.TtWhmStockInboundDao;
import com.efast.dmom.mgmt.entity.les.TtWhmStockInbound;
import com.efast.dmom.mgmt.service.les.TtWhmStockInboundService;
import com.efast.dmom.mgmt.utils.Assist;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 * @ClassName: TtWhmStockInboundServiceImpl
 * @Description: 入库记录 TT_WHM_STOCK_INBOUND
 * @author ChenLiPeng
 * @date 2018年4月4日
 *
 */

@Service
public class TtWhmStockInboundServiceImpl implements TtWhmStockInboundService {
	@Autowired
	private TtWhmStockInboundDao ttWhmStockInboundDao;

	@Override
	public long getTtWhmStockInboundRowCount(Assist assist) {
		return ttWhmStockInboundDao.getTtWhmStockInboundRowCount(assist);
	}

	@Override
	public List<TtWhmStockInbound> selectTtWhmStockInbound(Assist assist) {
		return ttWhmStockInboundDao.selectTtWhmStockInbound(assist);
	}

	@Override
	public TtWhmStockInbound selectTtWhmStockInboundByObj(TtWhmStockInbound obj) {
		return ttWhmStockInboundDao.selectTtWhmStockInboundByObj(obj);
	}

	@Override
	public TtWhmStockInbound selectTtWhmStockInboundById(Integer id) {
		return ttWhmStockInboundDao.selectTtWhmStockInboundById(id);
	}

	@Override
	public int insertTtWhmStockInbound(TtWhmStockInbound value) {
		return ttWhmStockInboundDao.insertTtWhmStockInbound(value);
	}

	@Override
	public int insertNonEmptyTtWhmStockInbound(TtWhmStockInbound value) {
		return ttWhmStockInboundDao.insertNonEmptyTtWhmStockInbound(value);
	}

	@Override
	public int insertTtWhmStockInboundByBatch(List<TtWhmStockInbound> value) {
		return ttWhmStockInboundDao.insertTtWhmStockInboundByBatch(value);
	}

	@Override
	public int deleteTtWhmStockInboundById(Integer id) {
		return ttWhmStockInboundDao.deleteTtWhmStockInboundById(id);
	}

	@Override
	public int deleteTtWhmStockInbound(Assist assist) {
		return ttWhmStockInboundDao.deleteTtWhmStockInbound(assist);
	}

	@Override
	public int updateTtWhmStockInboundById(TtWhmStockInbound enti) {
		return ttWhmStockInboundDao.updateTtWhmStockInboundById(enti);
	}

	@Override
	public int updateTtWhmStockInbound(TtWhmStockInbound value, Assist assist) {
		return ttWhmStockInboundDao.updateTtWhmStockInbound(value, assist);
	}

	@Override
	public int updateNonEmptyTtWhmStockInboundById(TtWhmStockInbound enti) {
		return ttWhmStockInboundDao.updateNonEmptyTtWhmStockInboundById(enti);
	}

	@Override
	public int updateNonEmptyTtWhmStockInbound(TtWhmStockInbound value, Assist assist) {
		return ttWhmStockInboundDao.updateNonEmptyTtWhmStockInbound(value, assist);
	}

	public TtWhmStockInboundDao getTtWhmStockInboundDao() {
		return this.ttWhmStockInboundDao;
	}

	public void setTtWhmStockInboundDao(TtWhmStockInboundDao ttWhmStockInboundDao) {
		this.ttWhmStockInboundDao = ttWhmStockInboundDao;
	}

}